package com.inventive.jmscache.server;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.jms.*;

/**
 * @author Grant Little <grant.little@coreservices.com.au>
 */
@Component
public class JmsCacheTopicConnectionFactory extends JmsCacheConnectionFactory implements TopicConnectionFactory {

    @Autowired
    private JmsCacheServer jmsCacheServer;

    public TopicConnection createTopicConnection() throws JMSException {
        return new JmsCacheTopicConnection(jmsCacheServer);
    }

    public TopicConnection createTopicConnection(String s, String s1) throws JMSException {
        return new JmsCacheTopicConnection(jmsCacheServer);
    }
}
